﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "GcmpModelInterface.h"
#include "IEvent.h"
namespace gcmp
{
    class ElementLocator;
    class IElementLocatorMoveAndRotateEventHandler;
    /// \brief 罗盘移动和旋转事件接口类
    class GCMP_MODEL_INTERFACE_EXPORT IElementLocatorMoveAndRotateEvent : public IEvent 
    {
        DEFINE_CAST_DERIVED(gcmp::IElementLocatorMoveAndRotateEvent, gcmp::IEvent);
    public:
        /// \brief 添加事件处理者
        /// \param pHandler 事件处理者
        /// \return 返回true表示添加成功，否则表示添加失败
        virtual bool Add(IElementLocatorMoveAndRotateEventHandler* pHandler) = 0;
        
        /// \brief 删除事件处理者
        /// \param pHandler
        /// \return 返回true表示删除成功，否则表示删除失败
        virtual bool Delete(IElementLocatorMoveAndRotateEventHandler* pHandler) = 0;

        /// \brief 得到发送者对象
        /// \return 发送者对象
        virtual ElementLocator* GetSender() const = 0;
    };
}


